﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="temp/favicon.ico"/>
<link rel="Shortcut Icon" href="temp/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link href="static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<script language="JavaScript"> 
if (window != top) 
top.location.href = location.href; 
</script>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>世强物流</title>
</head>
<body>
<div class="loginWraper">
  <div id="loginform" class="loginBox">
    <div class="form form-horizontal">
      <div class="row cl">
      	<label class="form-label col-xs-4"><img src="temp/logo_v2.png"/></label>
        <div class="formControls col-xs-8">
         	<h3>世强物流</h3>(请使用AD登录,推荐谷歌等非IE内核浏览器)
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
        <div class="formControls col-xs-8">
          <input id="name" type="text" placeholder="账户" class="input-text size-L">
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-xs-8">
          <input id="passWord" type="password" placeholder="密码" class="input-text size-L">
        </div>
      </div>
     <!--  <div class="row cl">
          <label class="form-label col-xs-3">
          </label>
          <div class="formControls col-xs-2">
          		<input class="input-text size-L" type="text" placeholder="验证码" id="code_input"  style="width:100px;">
	       </div>
          <div class="col-xs-7">
         	 <div id="v_container" style="width:200px;height:42px;"></div>
      	  </div>
      </div> -->
      <div class="row cl">
        <div class="formControls col-xs-9 col-xs-offset-3">
          <input name="" type="submit" id="my_button" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
          <input name="" type="reset" onClick="reset()" class="btn btn-danger radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
        </div>
      </div>
    </div>
  </div>
</div>
<div class="footer">©2018 深圳市世强先进科技有限公司</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="lib/jQueryYzm/js/gVerify.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
		//var verifyCode = new GVerify("v_container");
		document.getElementById("my_button").onclick = function(){
			if($('#name').val()==''){
				layer.tips('账号不能为空', '#name', {
					  tips: [2, '#dd514c'],
					  time: 4000
				});
				return;
			}
			if($('#passWord').val()==''){
				layer.tips('密码不能为空', '#passWord', {
					  tips: [2, '#dd514c'],
					  time: 4000
				});
				return;
			}
			
			//var res = verifyCode.validate(document.getElementById("code_input").value);
			//if(res){
				var name=$('#name').val();
				name=name.trim();
				if(name.indexOf("admin")<0){
					if(name.indexOf("@sekorm.com")<0){
						name=name+"@sekorm.com";
				    }
				}
				$.post("login.json",{username:name,password:$('#passWord').val()}, function(data){
						 if(data=='success'){
							 layer.msg("登录成功！正在跳转....");
							 setTimeout(function(){window.location.href="index.html";}, 1000);
						 }else{
							 layer.msg("登录失败！账号或密码错误");
						 }
				},"text");//这里返回的类型有：json,html,xml,text
			/* }else{
				layer.msg('验证码错误');
			} */
		}
		$(document).ready(function () {    
		    if (window != top) {    
		        top.location.href = location.href;    
		    }    
		});
function reset(){
	$('#name').val("");
	$('#passWord').val("");
}		
/* function create(){
			var index = layer.open({
				  type: 2,
				  title:'注册',
				  area: ['700px', '450px'],
				  fixed: false, //不固定
				  maxmin: true,
				  content:'createUser.html',
				  end:function(){
					  window.location.href="index.html";
				  }
			});
			layer.full(index);
} */
/* $("#name").mouseout(function(){
	var name=$("#name").val();
	name=name.trim();
	if(name!=""){
		if(name.indexOf("@sekorm.com")>=0){
		   return;
		}
		$("#name").val(name+"@sekorm.com");
	}
}); */
</script>
</body>
</html>